package com.yqd.oop;

public class Student {
    private String iDcard;

    public Student(String iDcard) {
        this.iDcard = iDcard;
    }

    public String getiDcard() {
        return iDcard;
    }

    public void setiDcard(String iDcard) {
        this.iDcard = iDcard;
    }

    @Override
    public String toString() {
        return "Student{" +
                "iDcard='" + iDcard + '\'' +
                '}';
    }

    public static void main(String[] args) {
        Student student = new Student("420322202312276319");
        System.out.println(student);
        System.out.println(student.iDcard);
        System.out.println(student.getiDcard());

        Person zhangsan = new Person("张三",10,"女");
        System.out.println(zhangsan);
        System.out.println(zhangsan.name);


    }
}
